package com.ssn.observer.stock;

import java.util.ArrayList;
import java.util.List;

public class User implements Observer{
    private String name;
    private List<Stock> stocks = new ArrayList<>();
    public User(String name) {
        this.name = name;
    }
    @Override
    public void update(Object o) {
        System.out.println("用户： " + name + "收到信息：   " + (String)o);
    }
}
